<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/head::commonHeaderList('离职老师名下学员')"/>

<body >

<div id="content" class="col-lg-12 col-sm-12">
    <div class="row">
        <div class="box col-md-12" style="padding: 0;margin-top: 5px;">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>
                        <i class="glyphicon glyphicon-list"></i>离职老师名下学员列表
                    </h2>
                    <div class="box-icon">
                        <a href="javascript:void(0);" id="smaller" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a>
                    </div>
                </div>
                <div class="box-content">
                    <form class="form-inline form-search " role="form" th:action="@{'/teacher/resign/stu/list'}">
                        <select class="selectpicker" name="listSscId" multiple data-live-search="true" th:title="请选择SSC" data-live-search-placeholder="搜索" data-actions-box="true">
                            <option th:each="oitem:${listSsc}" th:value="${oitem.id}" th:selected="${listSscId!=null?(#lists.contains(listSscId,oitem.id)):false}" th:text="${oitem.loginName}"></option>
                        </select>
                        <div class="input-group input-group-sm">
                            <input type="search" name="searchKey" th:value="${searchKey}" id="searchKey" class="form-control" placeholder="查询关键字..." style="width:200px;height:34px;margin-bottom: 0 !important;">
                            <span class="input-group-btn">
                                <button class="btn btn-info btn-sm" type="submit" style="height: 34px;"> 查 询</button>
                            </span>
                        </div>
                    </form>
                    <table class="table table-striped table-bordered table-hover" style="margin-top: 10px;" data-show-toggle="false">
                        <thead>
                        <tr>
                            <th class="text-center">#</th>
                            <th class="text-center text-nowrap">老师名称</th>
                            <th class="text-nowrap">学员</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="item,itemStat:${pageInfo.list}">
                            <td class="text-center" th:text="${itemStat.index+1}"></td>
                            <td class="text-center" style="white-space:nowrap;vertical-align: middle;" th:text="${item.teacherLogin}"></td>

                            <td th:if="${item.studentLogin!=null && item.studentLogin!=''}">
                                <a href="javascript:" th:each="item1,item1Stat:${#strings.listSplit(item.studentLogin,',')}" th:with="stuInfo=${#strings.arraySplit(item1,'|')}" th:style="${(!item1Stat.last?'margin-right:10px;':'') + (stuInfo[2]=='1'?'color:red;':'')}" th:onclick="personInfo([[${stuInfo[1]}]])" th:text="${stuInfo[0]}"></a>
                            </td>

                        </tr>
                        </tbody>
                    </table>
                    <div th:include="include/pageinfo::pager"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include/onload_js::onloadJSCustomList(~{::script})">
    <script src="../static/js/openPerson.js" th:src="@{/static/js/openPerson.js}" rel="script"></script>
    <script>

    </script>

</body>
</html>